[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
Round Rounds a Real Value to Nearest Integer
Round(X : Real) : Integer;
Rounds the real value X to the nearest integer value. For example:
Round(1.5) = 2 Round(1.4) = 1
Round(-1.5) = -2 Round(-1.4) = -1
X Any real value (constant, variable, function call or
expression).
Limits: If X is outside the range -32768..32767, runtime error
146 ($92) occurs (regardless of range checking).
-------------------------------- Example ---------------------------------
I := Round(42.4); { I = 42 }
I := Round(42.5); { I = 43 }
See Also:
Trunc
Frac
Int
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson